<?php
		class Myclass{
		public function __call($method,$property){
			if($method == "test"){
				$num = count($property);
				if($num ==1){
					return substr($property[0],-1);
				}
				if($num ==2){
					$str = implode("",$property);
					return str_repeat($str,3);
				}else{
					return false;
				}				
			}

		}

	}
	$stu = new Myclass;
	echo $stu->test('helloword!','open');